package com.qf.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qf.mapper.DtsGoodsProductMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author jiangjingbo
 * @version V1.0
 * @Project java2203
 * @Package com.qf.service
 * @Description:
 * @Date 2022/6/18 13:55
 */

/**
 * 查询商品数量
 */
@Service(value = "goodsP")
public class GoodsProductServiceImpl implements GoodsProductService {
    @Autowired
    private DtsGoodsProductMapper goodsProduct;
    @Override
    public int GoodsProductCount() {
        QueryWrapper queryWrapper =new QueryWrapper();
        queryWrapper.eq("deleted" , false);
        Integer integer = goodsProduct.selectCount(queryWrapper);
        return integer;
    }
}
